﻿using UnityEngine;

public static class Vector2Extension
{
    public static Vector2 SetX(this Vector2 self, float x)
    {
        self.x = x;
        return self;
    }
    public static Vector2 SetY(this Vector2 self, float y)
    {
        self.y = y;
        return self;
    }

    public static float XDividedByY(this Vector2 self) => self.x / self.y;
    public static float YDividedByX(this Vector2 self) => self.y / self.x;
}